package cn.iocoder.yudao.module.api.infrastructure.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * 创建系统用户数据实体
 *
 * @author 山野羡民
 */
@Data
public class SystemUserCreateReqDTO {
    
    @Schema(description = "姓名或昵称", example = "羡民")
    private String name;

    @Schema(description = "用户名，如手机号码", requiredMode = Schema.RequiredMode.REQUIRED, example = "15285116029")
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    @NotEmpty(message = "密码不能为空")
    private String password;
    
    @Schema(description = "角色编码", example = "shop_admin")
    private String roleCode;

    @Schema(description = "部门编号", example = "7")
    private Long deptId;

    @Schema(description = "备注", example = "平台管理员手动添加")
    private String remark;

}
